package com.ship.dispatch.service;

import com.ship.common.business.service.BaseService;
import com.ship.common.core.web.domain.JsonResult;
import com.ship.dispatch.bean.SmShipFreightCost;
import com.ship.dispatch.bean.SpShipFreightAttachments;
import com.ship.dispatch.bean.boats.CreateFreightAttachmentsRq;
import com.ship.dispatch.bean.boats.CreateFreightRq;
import com.ship.dispatch.bean.fob.SpFobFileRecord;

import java.util.List;

/**
* @author zhangyh
* @description 针对表【sm_ship_freight_cost(船舶运费信息表)】的数据库操作Service
* @createDate 2024-01-29 15:52:05
*/
public interface SmShipFreightCostService extends BaseService<SmShipFreightCost> {

    /**
     * 运费信息保存
     * @param cost
     */
    Long saveFreightCost(SmShipFreightCost cost);

    boolean addFreight(SpFobFileRecord record,CreateFreightRq rq);

    JsonResult addFreightAttachments(SpFobFileRecord record, String id);

    boolean deleteFreight(List<String> ids);

    boolean updateFreightAttachmentsById(SpShipFreightAttachments rq);

    SmShipFreightCost queryFreightById(Long costId);

    JsonResult queryRecordById(Long costId,String processInstanceId,String key);

    boolean updateFreightAttachmentsUrl(CreateFreightAttachmentsRq rq);
}
